package com.songlanyun.modules.collect.service;

import com.songlanyun.common.drive.IBaseService;
import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.modules.collect.entity.UserCollectGoods;
import com.songlanyun.modules.collect.model.dto.UserCollectGoodsDTO;

import java.util.Map;

/**
 * 用户收藏商品
 *
 * @author zx
 * @email 
 * @date 2021-03-08 10:27:59
 */
public interface UserCollectGoodsService extends IBaseService<Long,UserCollectGoods> {

    UserCollectGoods addEntity(Long userId,UserCollectGoodsDTO userCollectGoodsDTO);
    PageUtils queryPage(Map<String, Object> params);

    Boolean isCollect(Long userId, Long goodsId);

    Integer collectSum(Long userId);

    void delCollect(Long userId, Long goodsId);
}

